import request from '~/utils/request'

export default {
  /**
   * 课程信息列表
   * @param {*} searchObj
   * @returns
   */
  getCourseList(searchObj) {
    return request({
      url: '/service-edu/api/front/course/list',
      method: 'post',
      params: searchObj
    })
  },
  /**
   * 查询课程详细信息
   * @param {} id
   * @returns
   */
  getCourseInfoById(id) {
    return request({
      url: `/service-edu/api/front/course/findCourseIntro/${id}`,
      method: 'get'
    })
  },
  /**
   * 获取视频播放凭证
   * @param {*} id
   * @returns
   */
  getVideoAuth(id) {
    return request({
      baseURL: "http://localhost:9110",
      url: `/aliyun-video/admin/aliyun/video/getAuthRization/${id}`,
      method: 'post'
    })
  }
}
